package com.whz.work.ex02;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @ClassName StaticResourceProcessor
 * @Description TODO
 * @Author hong-zhi
 * @Date 2021/5/28 20:58
 * @Version 1.0
 */
@Slf4j
public class StaticResourceProcessor implements Processor{
    @Override
    public void process(Request request, Response response) {
        try {
            response.sendStaticResource();
        } catch (IOException e) {
            e.printStackTrace();
            log.error("静态文件发送失败");
        }
    }
}
